package model;

public class Role {

	private String roleID;
	private String roleName;
	private String roleDescription;
	
	public Role() {
		super();
	}

	public Role(String roleID, String roleName, String roleDescription) {
		super();
		this.roleID = roleID;
		this.roleName = roleName;
		this.roleDescription = roleDescription;
	}

	public String getRoleID() {
		return roleID;
	}

	public void setRoleID(String roleID) {
		this.roleID = roleID;
	}

	public String getRoleName() {
		return roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public String getRoleDescription() {
		return roleDescription;
	}

	public void setRoleDescription(String roleDescription) {
		this.roleDescription = roleDescription;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((roleID == null) ? 0 : roleID.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Role other = (Role) obj;
		if (roleID == null) {
			if (other.roleID != null)
				return false;
		} else if (!roleID.equals(other.roleID))
			return false;
		return true;
	}

	@Override
	public String toString() {
		return "RoleDTO [roleID=" + roleID + ", roleName=" + roleName
				+ ", roleDescription=" + roleDescription + "]";
	}
	
}
